<?php 

class SolutionsAction extends BaseAction{


	/**
	 * 首页
	 * @return [type] [description]
	 */
	function index(){
		$this->display();
	}

	/**
	 * 列表页
	 * @return [type] [description]
	 */
	function alist(){
		$cid = I('cid');
		$now_cate = M('category')->where(['id'=>$cid])->find();
		$content = M('content')->where(['pid'=>$cid])->select();
		$this->assign('list',$content);
		$this->assign('now_cate',$now_cate);
		$this->display();
	}

	/**
	 * 详情页
	 * @return [type] [description]
	 */
	function detail(){
		$id = I('id');
		$content = M('content')->where(['id'=>$id])->find();
		$this->assign('info',$content);
		$this->display();
	}

	/**
	 * 联系我们
	 * @return [type] [description]
	 */
	function contact(){
		$this->display();
	}

	

}

?>